import { defineConfig } from 'vitepress'

// https://vitepress.dev/reference/site-config
export default defineConfig({
  lastUpdated: true,
  base: '/hxmaker/',
  title: "Hxmaker游戏引擎",
  ignoreDeadLinks: true,
  description: "这是一个轻量快速，自动多纹理批处理的游戏引擎",
  themeConfig: {
    footer: {
      message: 'Released under the MIT License.',
      copyright: 'Copyright © 2025-present Hxmaker'
    },
    search: {
      provider: 'local'
    },
    // https://vitepress.dev/reference/default-theme-config
    nav: [
      { text: '主页', link: '/docs/start' },
      { text: '展示样品', link: '/docs/samples/readme' },
      { text: 'ActBuilderNext', link: '/docs/actbuildernext/readme' }
    ],

    sidebar: [
      {
        collapsed:true,
        text: 'Hxmaker手册',
        items: [
          { text: '开始', link: '/docs/start' },
          { collapsed:true, text: '简介', link: '/docs/introduction', items: [
            { text: '什么是Hxmaker？', link: '/docs/introduction/what_is_hxmaker' },
            { text: '功能支持', link: '/docs/introduction/support' },
          ]},
          { text: '快速开始', link: '/docs/quickstart' },
          { collapsed:true, text: '初学者', link: '/docs/beginner', items: [
            { text: '显示列表', link: '/docs/beginner/display_list' },
            { text: '多纹理渲染', link: '/docs/beginner/mul_textures' },
            { text: '资源管理', link: '/docs/beginner/resource_load' },
            { text: '图像', link: '/docs/beginner/display_images' },
            { text: '文本', link: '/docs/beginner/display_label' },
            { text: '按钮' , link: '/docs/beginner/button' },
            { text: '精灵容器', link: '/docs/beginner/container' },
            { text: '精灵图集', link: '/docs/beginner/sprite_sheet' },
            { text: 'Spine动画', link: '/docs/beginner/spine' },
            { text: '图形', link: '/docs/beginner/graphics' },
            { text: '音频与音乐', link: '/docs/beginner/audio' },
            { collapsed:true, text: '事件', link: '/docs/beginner/event', items: [
              { text: '更新事件', link: '/docs/beginner/loop_event' },
              { text: '键盘事件', link: '/docs/beginner/keyboard_event' },
              { text: '鼠标事件', link: '/docs/beginner/mouse_event' },
              { text: '触摸事件', link: '/docs/beginner/touch_event' }
            ]},
            { text: '基础布局', link: '/docs/beginner/layout' },
            { text: '游戏分辨率', link: '/docs/beginner/game_resolution' },
            { text: 'FPS调试', link: '/docs/beginner/fps_debug' },
          ]},
          { text: '命令行', link: '/docs/cli'},
          {
            collapsed:true, text: '展示样例（OpenFL）', link: '/docs/samples/readme', items: [
              { text: '图像显示', link: '/docs/samples/display_images' },
              { text: '精灵图渲染', link: '/docs/samples/atlas_images' },
              { text: 'Spine渲染', link: '/docs/samples/spine_render' },
              { text: '图形渲染', link: '/docs/samples/graphics_render' },
              { text: '键盘控制', link: '/docs/samples/keyboard_event' },
            ]
          }
        ]
      },{
        collapsed:true,
        text:'ActBuilderNext编辑器',
        items:[
          { text: '简介', link: '/docs/actbuildernext/readme' },
          { text: '安装与下载', link: '/docs/actbuildernext/download' },
          { text: '数据结构', link: '/docs/actbuildernext/data_structure' }
        ]
      }
    ],

    socialLinks: [
      { icon: 'github', link: 'https://github.com/rainyt/hxmaker' }
    ]
  }
})
